package com.iflytek.iot.common.monitor.model;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zurun
 * @date 2020/7/13 10:55:43
 */
@Data
@Accessors(chain = true)
public class MonitorArgs<T> implements MonitorTask {
    private WarningLevel level;
    private T t;

    public static MonitorArgs normal(Object t) {
        return new MonitorArgs().setLevel(WarningLevel.NORMAL_LEVEL).setT(t);
    }

    @Override
    public void run() {

    }

    @Override
    public WarningLevel getWarningLevel() {
        return level;
    }

}
